package com.cloud.rou.im.router;

import com.cloud.rou.im.cluster.naming.node.InstanceTreeCacheListener;
import com.cloud.rou.im.cluster.naming.node.SubInstanceEvent;
import com.cloud.rou.im.core.util.SingletonUtil;

public class WorkerRouter {

    public static WorkerRouter getInst() {
        return SingletonUtil.get(WorkerRouter.class);
    }
    public WorkerRouter() {
        init();
    }
    //WorkerRouter初始化代码
    public void init() {
        SubInstanceEvent subInstanceEvent = new SubInstanceEvent();
        subInstanceEvent.sub(new InstanceTreeCacheListener(new CustomInstancePostProcessorAdapt()));
    }


}
